package com.ruoyi.netty;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 牧鱼
 * @Classname VehicleDataProductionApplication
 * @Description TODO
 * @Date 2021/8/3
 */
//@EnableAsync
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@MapperScan("com.ruoyi.**.mapper")
public class nettyApplication /*implements ApplicationRunner*/ {
    public static void main(String[] args) {
        SpringApplication.run(nettyApplication.class);
    }

//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//        Thread thread = new Thread(() -> {
//            CharServer charServer = new CharServer();
//            charServer.start();
//        });
//        thread.start();
//        System.out.println("---------------");
//    }
}
